﻿using System;
using System.Xml.Serialization;

namespace SimpleMediaManager.TMDB
{
    public enum ImageType
    {
        poster,
        backdrop,
        profile
    }

    public enum ImageSize
    {
        original,
        cover,
        mid,
        thumb,
        poster,
        profile,
        w342,
        w154,
        w1280
    }

    [XmlType("image")]
    public class Image
    {
        [XmlAttribute("type")]
        public ImageType Type { get; set; }

        [XmlAttribute("size")]
        public ImageSize Size { get; set; }

        [XmlAttribute("url")]
        public string Url { get; set; }

        [XmlAttribute("id")]
        public string Id { get; set; }

        [XmlAttribute("width")]
        public int Width { get; set; }

        [XmlAttribute("height")]
        public int Height { get; set; }
    }
}
